<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Encore\Admin\Traits\DefaultDatetimeFormat;

class Movie extends Model
{
    use HasFactory, DefaultDatetimeFormat;
    protected $table = 'movie';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'title',
        'director',
        'describe',
        'rate',
        'released'
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    // protected $casts = [
    //     'release_at' => 'datetime',
    // ];
    /**
     * 是否主动维护时间戳
     *
     * @var bool
     */
    public $timestamps = true;

}
